﻿using System;

namespace Conducido.BizTalkOppSvc.Services.Contracts.Exceptions
{
    internal static class Exceptions
    {
        public const int BizTalkQueryApplicationNullMessage = 0x320e8;
        public const int BizTalkQueryApplicationStatusNotFoundMessage = 0x320e2;
        public const int BizTalkQueryGetAllApplicationsMessage = 0x320cc;
        public const int BizTalkQueryGetApplicationStatusMessage = 0x320cb;
        public const int BizTalkQueryGetHostsMessage = 0x320d0;
        public const int BizTalkQueryGetOrchestrationsMessage = 0x320ce;
        public const int BizTalkQueryGetReceiveLocationsMessage = 0x320d2;
        public const int BizTalkQueryGetSendHandlerMessage = 0x320cd;
        public const int BizTalkQueryGetSendPortsMessage = 0x320d3;
        public const int BizTalkQueryGetStatusChangedMessage = 0x320c9;
        public const int BizTalkQueryGetSystemStatusMessage = 0x320ca;
        public const int BizTalkQueryInitSQLMessage = 0x320c8;
        public const int BizTalkQueryIsManagedPipelineMessage = 0x320cf;
        public const int BizTalkQueryLiveBodyNotFoundInstanceIdMessage = 0x320de;
        public const int BizTalkQueryLiveBodyNullStreamMessage = 0x320df;
        public const int BizTalkQueryLiveBodyUnexpectedMessage = 0x320e0;
        public const int BizTalkQueryLiveMessageNotFoundMessage = 0x320e5;
        public const int BizTalkQueryMessageFlowUnexpectedMessage = 0x320e1;
        public const int BizTalkQueryMessageIdFormatMessage = 0x320e4;
        public const int BizTalkQueryMessageInstanceMessage = 0x320d6;
        public const int BizTalkQueryMessageNotTrackedMessage = 0x320e9;
        public const int BizTalkQueryOrchestrationInstanceMessage = 0x320d5;
        public const int BizTalkQueryOrchestrationsNotFoundMessage = 0x320e3;
        public const int BizTalkQueryReceiveByDescriptionMessage = 0x320d1;
        public const int BizTalkQueryRLNullMessage = 0x320e6;
        public const int BizTalkQueryRPNullMessage = 0x320e7;
        public const int BizTalkQuerySendsByDescriptionMessage = 0x320d4;
        public const int BizTalkQueryTrackedMessageMessage = 0x320d7;
        public const int BizTalkQueryTrackedMessageNullStreamMessage = 0x320d8;
        public const int BizTalkQueryUpdateReceiveDescriptionMessage = 0x320da;
        public const int BizTalkQueryUpdateReceiveDescriptionSqlMessage = 0x320db;
        public const int BizTalkQueryUpdateReceiveMessage = 0x320d9;
        public const int BizTalkQueryUpdateSendDescriptionMessage = 0x320dd;
        public const int BizTalkQueryUpdateSendDescriptionSqlMessage = 0x320dc;
        public const int BizTalkRegistryMissingMessage = 0x320c7;
        public const string BTQueryResourceBaseName = "Microsoft.Practices.ESB.BizTalkOperations.Exceptions";
        public const int GeneralErrorMessage = 0x31ceb;

        internal static string GetErrorDescription(int errorCode)
        {
            string str2 = string.Empty;
            try
            {
                //TODO: Fix dit
                //str2 = ResourceStringLoader.GetErrorDescription(errorCode, "Microsoft.Practices.ESB.BizTalkOperations.Exceptions", Assembly.GetExecutingAssembly());
            }
            catch (Exception)
            {
                throw;
            }
            return str2;
        }
    }
}
